package dubbo.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import dubbo.service.HelloService;

@Controller
@RequestMapping("/test")
public class TestController {
       @Autowired
	   HelloService helloService;
       @RequestMapping("index")
       public String index(Model model){
           model.addAttribute("str", helloService.sayHello("ant"));
           return "index";
       }
}
